
<%@page import="com.hostmanagement.message.FixMessage,java.util.*"%>
<%@page import="com.hostmanagement.user.UserBean;"%>
<LINK href="./css/style.css" type=text/css rel=stylesheet>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #5CB7FE;
}

.STYLE1 {
	font-size: 12px
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<form name="form" action="showAffiche.jsp" method="post">
	<table width="98%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<!--DWLayoutTable-->
		<tr>
			<td width="1%" rowspan="3" align="right" valign="bottom">
				<img src="images/icon13.jpg" width="6" height="25" />
			</td>
			<td width="97%" height="5">
				<INPUT type="hidden" name="title" value="title">
				<INPUT type="hidden" name="content" value="content">
				<INPUT type="hidden" name="sendtime" value="sendtime">
			</td>
			<td width="1%" rowspan="3" valign="bottom">
				<img src="images/icon10.jpg" width="10" height="25" />
			</td>
			<td width="1%"></td>
		</tr>
		<tr>
			<td height="24" align="center" valign="bottom"
				background="images/icon12.jpg">
				<span style="color: #000000"> <marquee
						style="word-break: break-all; LEFT: 2px; MARGIN-LEFT: 2px; WIDTH: 100%; TOP: 2px; HEIGHT: 20px; TEXT-ALIGN: center"
						onMouseOver=this.stop() onMouseOut=this.start() scrollamount=2
						scrolldelay=50 direction=left behavior=loop>
						<span class="STYLE1"> 
							<%
								List list = new ArrayList();
								FixMessage fixMessage = new FixMessage();
								UserBean userBean = (UserBean)session.getAttribute("userBean");
								if(userBean.getRuleId() == 1){
									list = fixMessage.getMessages();
								}
								else{
									list = fixMessage.getMessages(userBean.getUserId());
								}
								
								for(int i=0;i<list.size();i++){
							 	Map map = (Map)list.get(i);
							 %>
							
							<A href="#" onclick=window.open("message.jsp?messageId=<%=map.get("messageId")%>","","width=400,height=200") >
								<%=map.get("fixContent")%>&nbsp;&nbsp;<%=map.get("sendTime")%>
							</a>
							
							<%
								}
							%>
						</span>
					</marquee> </span>
			</td>
			<td></td>
		</tr>
		<tr>
			<td height="1"></td>
			<td></td>
		</tr>
	</table>
</form>